package com.ss.io07;

import java.io.*;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/19 - 03 - 19 - 17:27
 */
public class Test02 {
    //这是一个main方法，是程序的入口
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File("e:\\a\\demo4.txt")));
        //读入内存：
        Person p = (Person)(ois.readObject());
        System.out.println(p/*.toString()*/);
        //关闭流
        ois.close();
    }
}
